/deposit and /withdraw
Request body:
| Field | Type | Required | Format / constraints |
|---|---|---|---|
documentID | integer (int64) | No | Internal document id |
documentExtID | string | No | External document id |
amount | integer (int64) | Yes | Must be > 0 |
employeeName | string | No | Cashier name |
Success response:
| Field | Type | Required | Notes |
|---|---|---|---|
documentID | integer (int64) | No | Cash operation document id |
fiscalID | string | No | Fiscal id |
fiscalNum | string | No | Fiscal number |
fiscalUrl | string | No | Fiscal URL |
Specific recovery behavior:
- For retry/resume, server matches an existing cash document by operation type (
deposit/withdraw) and cash amount. documentExtID(ordocumentID) is used as retry key to locate/reuse the same document safely.- If neither
documentExtIDnordocumentIDis provided, deterministic recovery is not guaranteed.